using System.Net.NetworkInformation;

namespace System.Net
{
    public static class WebProxyExtentions
    {
        public static PingReply[] Ping(this WebProxy proxy,
            int Count,
            int BufferLength = 32,
            bool DontFragment = true,
            int Timeout = 120,
            Action<int, int, PingReply> OnPing = null)
        {
            return proxy.Address.Ping(Count, BufferLength, DontFragment, Timeout, OnPing);
        }
    }
}